package dm.user.consumer.dmo.controller;


import cn.t11.dm.pojo.Dto;
import dm.user.consumer.dmo.service.IDmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author jobob
 * @since 2020-01-14
 */
@RestController
@RequestMapping("user/api")
public class DmUserController  {

        @Autowired
        IDmUserService iDmUserService;

        //密码登录接口
        @PostMapping("p/login")
        public Dto dologin(String phone,String password){
                return iDmUserService.doLogin(phone, password);
        }
}
